package com.hc.demo.service;

import com.hc.demo.dto.ResultResponse;
import com.hc.demo.mapper.OverallresultMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OverallResultServiceImpl implements OverallResultService {

    @Autowired
    OverallresultMapper overallResultMapper;

    @Override
    public ResultResponse getOverallResultByOrderId(Integer orderId) {


        return new ResultResponse(ResultResponse.SUCCESS_CODE,ResultResponse.SUCCESS_DESC,overallResultMapper.selectAllByOrderId(orderId));
    }
}
